package com.blog.dto.cond;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论的查找参数
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentCondition implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 状态
     */
    private String status;
    /**
     * 开始时间戳
     */
    private Date startTime;
    /**
     * 结束时间戳
     */
    private Date endTime;
    /**
     * 父评论编号
     */
    private Integer parent;

    public CommentCondition(String status) {
        this.status = "approved";
        this.startTime = null;
        this.endTime = null;
        this.parent = null;
    }
}
